﻿using System;

namespace BGN.PlugIn.Server.Configer
{
    public class SeverSinfoMsgPluginConfiger : Common.BasicConfiger
    {
        protected override String ParentXPath
        {
            get { return "/Configs/SeverSinfoMsgPlugin"; }
        }

        private static SeverSinfoMsgPluginConfiger instance;
        private static Object locker = new Object();

        /// <summary>
        /// 获取插件配置的程序名称
        /// </summary>
        /// <returns></returns>
        public String GetManageApplicationName()
        {
            return GetXmlConfigNodeInnerText("ManageApplicationName");
        }

        /// <summary>
        /// 获取插件配置的Remoting访问的端口号
        /// </summary>
        /// <returns></returns>
        public String GetRemotingPort()
        {
            return GetXmlConfigNodeInnerText("RemotingPort");
        }

        public static SeverSinfoMsgPluginConfiger Instance
        {
            get
            {
                if (instance != null) return instance;
                lock (locker)
                {
                    instance = new SeverSinfoMsgPluginConfiger();
                }
                return instance;
            }
        }
    }
}
